package wxapp

import (
	"context"
	v1 "hotgo/api/api/wxapp/v1"
	"hotgo/internal/service"
)

// HotList 活动列表
func (c *ControllerV1) HotList(ctx context.Context, req *v1.HotReq) (res *v1.HotRes, err error) {
	res = &v1.HotRes{}
	res.List, res.TotalCount, err = service.Wxapp().HotList(ctx, req.Page, req.PageSize)
	return
}

// LunBo 首页轮播
func (c *ControllerV1) LunBo(ctx context.Context, req *v1.LunBoReq) (res *v1.LunBoRes, err error) {
	res = &v1.LunBoRes{}
	res.List, err = service.Wxapp().Lunbo(ctx)
	return
}
